Release 10.1A: OpenEdge Development:
Web Services
Preface
This Preface contains the following sections:
Purpose
This manual describes how OpenEdge® supports Web services. It describes the technology for exposing AppServer™ application services as Web services (Progress® 4GL Web services), and how to access industry Web services from the Progress 4GL as a Web service client. It also describes the requirements for programming industry Web service clients to access Progress 4GL Web services. And it defines the Web services industry standards that OpenEdge supports.
This manual provides a brief overview of Web services architecture in OpenEdge. However, for a complete description of the Web services architecture in OpenEdge, including all components and how they work together, see OpenEdge Getting Started: Application and Integration Services .
This manual describes the general procedures and facilities for building Progress 4GL Web services, as well as specific client requirements. However, for specific information on Web service development, deployment, and administration, see the following documentation:
- Web service development:
- Web service deployment and administration:
- Progress Explorer online help for the Web Services Adapter
- OpenEdge Development: Messaging and ESB (for deploying and managing Progress 4GL Web services for the Sonic ESB using the Sonic ESB Adapter)
Audience
The most appropriate reader for this manual is one or both of the following:
- An experienced developer or provider of Progress 4GL application services who wants to make an application service available as a Web service over the Internet or an intranet.
- An experienced Progress 4GL (or SpeedScript®) developer who wants to access industry Web services from their 4GL (or SpeedScript) application.
Organization
Chapter 1 "Web Services in OpenEdge"
Provides a general overview of Web services in OpenEdge, describing how to develop, deploy, and manage Progress 4GL Web services, and how you can access industry Web services from a Progress 4GL application. This includes a brief overview of the Web Service Description Language (WSDL) and Simple Object Access Protocol (SOAP) that provides part of the foundation for Web services in OpenEdge. This chapter also describes the industry Web service standards that OpenEdge supports.
Part II, Clients Accessing Progress 4GL Web Services
Chapter 2 "WSDL and Web Service Objects in Progress 4GL Web Services"
Describes how the interface to Progress 4GL Web services is based on the Open Client object model and defined in a Web Service Description (WSDL) file.
Chapter 3 "Session Models and Object IDs in Progress 4GL Web Services"
Describes how Progress 4GL Web services support AppServer session models.
Chapter 4 "General Client Programming Model for Progress 4GL Web Services"
Describes how to program client access to Progress 4GL Web services using the Open Client object model, including a description of session model programming, data type mapping, handling SOAP headers, and SOAP faults.
Chapter 5 "Sample Code with SOAP Messages for Progress 4GL Web Services"
Describes, in detail, the techniques for coding Progress 4GL Web service operations using VB.NET as the sample client platform, showing the types of SOAP messages that are generated for various types of SOAP requests supported by the Open Client object model.
Chapter 6 "Sample Progress 4GL Web Services and Client Applications"
Describes the sample Progress 4GL Web services that are installed with OpenEdge and the sample client applications to access them (also installed).
Chapter 7 "Testing and Debugging Progress 4GL Web Services"
Describes how to test and debug Progress 4GL Web services using log files, SOAP viewers, and basic SOAP fault handling techniques.
Part III, Progress 4GL Clients Accessing Industry Web Services
Chapter 8 "Analyzing WSDL for Progress 4GL Access to Web Services"
Describes how to run the WSDL Analyzer to generate documentation on a Web service. This documentation describes how to connect to a Web service defined in the WSDL and how to call its operations from the 4GL. The chapter also describes how OpenEdge maps Progress 4GL data types to the XML Schema data types interpreted by Web services.
Chapter 9 "Connecting to Web Services from the Progress 4GL"
Describes how to connect to and manage connections to a Web service from the 4GL once you have generated the WSDL documentation for it.
Chapter 10 "Invoking Web Service Operations from the Progress 4GL"
Describes how to invoke and manage Web service operations from the 4GL once you have generated the WSDL documentation for it. This includes information on how to configure Web service operations for managing SOAP message headers in the 4GL.
Chapter 11 "Handling SOAP Message Headers in the Progress 4GL"
Describes how to manage SOAP message headers in the 4GL for Web service operations that are configured for SOAP header management. This includes a detailed description of the 4GL techniques for accessing, manipulating, creating, and managing all elements of a SOAP message header.
Chapter 12 "Handling Errors in Progress 4GL Requests to Web Services"
Describes how to manage errors from 4GL requests to Web services in general and for SOAP faults in particular. This includes a detailed description of the 4GL techniques for accessing all elements of a SOAP fault message.
Chapter 13 "Sample Progress 4GL Applications Accessing Web Services"
Describes some of the sample 4GL applications installed with OpenEdge that access Web services, both public Web services and sample Web services provided with OpenEdge for deployment.
Appendix A, "Developing a .NET Client to Access Progress 4GL Web Services"
Describes a sample scenario in which a .NET client application is developed to access a Progress 4GL Web service.
Appendix B, "Developing a Java Client to Access Progress 4GL Web Services"
Describes a sample scenario in which a Java™ client application is developed to access a Progress 4GL Web service.
Appendix C, "Progress 4GL Elements for Accessing Web Services"
Provides a quick reference to the basic Progress 4GL elements provided by OpenEdge to access Web services.
Appendix D, "Data Type Casting Rules for Progress 4GL Calls to Web Services"
Describes in finer detail the key rules used to transform data for Web service operation parameters between alternative mappings of Progress 4GL data types and XML Schema data types.
Appendix E, "Commands and Utilities"
Describes the syntax for commands and utilities documented in this manual. If this manual provides the primary documentation for a command or utility, the syntax for that command or utility appears in this appendix.
Typographical conventions
This manual uses the following typographical conventions:
Examples of syntax descriptions
In this example,
ACCUMis a keyword, andaggregateandexpressionare variables:
FORis one of the statements that can end with either a period or a colon, as in this example:
In this example,
STREAMstream,UNLESS-HIDDEN, andNO-ERRORare optional:
In this example, the outer (small) brackets are part of the language, and the inner (large) brackets denote an optional item:
A called external procedure must use braces when referencing compile-time arguments passed by a calling procedure, as shown in this example:
In this example,
EACH,FIRST, andLASTare optional, but you can choose only one of them:
In this example, you must include two expressions, and optionally you can include more. Multiple expressions are separated by commas:
In this example, you must specify
MESSAGEand at least oneexpressionorSKIP[ (n) ], and any number of additionalexpressionorSKIP[ (n) ] is allowed:
In this example, you must specify {
include-file, then optionally any number ofargumentor&argument-name = "argument-value", and then terminate with }:
Long syntax descriptions split across lines
Some syntax descriptions are too long to fit on one line. When syntax descriptions are split across multiple lines, groups of optional and groups of required items are kept together in the required order.
In this example,
WITHis followed by six optional items:
Complex syntax descriptions with both required and optional elements
Some syntax descriptions are too complex to distinguish required and optional elements by bracketing only the optional elements. For such syntax, the descriptions include both braces (for required elements) and brackets (for optional elements).
In this example,
ASSIGNrequires either one or morefieldentries or onerecord. Options available withfieldorrecordare grouped with braces and brackets:
Example procedures
This manual provides numerous example procedures that illustrate syntax and concepts. You can access the example files and details for installing the examples from the following locations:
After you install the examples, you can find the Web services samples in the following location:
OpenEdge messages
OpenEdge displays several types of messages to inform you of routine and unusual occurrences:
- Execution messages inform you of errors encountered while OpenEdge is running a procedure; for example, if OpenEdge cannot find a record with a specified index field value.
- Compile messages inform you of errors found while OpenEdge is reading and analyzing a procedure before running it; for example, if a procedure references a table name that is not defined in the database.
- Startup messages inform you of unusual conditions detected while OpenEdge is getting ready to execute; for example, if you entered an invalid startup parameter.
After displaying a message, OpenEdge proceeds in one of several ways:
- Continues execution, subject to the error-processing actions that you specify or that are assumed as part of the procedure. This is the most common action taken after execution messages.
- Returns to the Progress Procedure Editor, so you can correct an error in a procedure. This is the usual action taken after compiler messages.
- Halts processing of a procedure and returns immediately to the Progress Procedure Editor. This does not happen often.
- Terminates the current session.
OpenEdge messages end with a message number in parentheses. In this example, the message number is
200:
If you encounter an error that terminates OpenEdge, note the message number before restarting.
Obtaining more information about OpenEdge messages
In Windows platforms, use OpenEdge online help to obtain more information about OpenEdge messages. Many OpenEdge tools include the following Help menu options to provide information about messages:
- Choose Help
Recent Messages to display detailed descriptions of the most recent OpenEdge message and all other messages returned in the current session.
- Choose Help
Messages and then type the message number to display a description of a specific OpenEdge message.
- In the Progress Procedure Editor, press the HELP key or F1.
On UNIX platforms, use the Progress
procommand to start a single-user mode character OpenEdge client session and view a brief description of a message by providing its number.
![]()
To use the pro command to obtain a message description by message number:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |